From c8d0c0aba303e8ba13b0c215ecdb68441eedaeed Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Wed, 15 Jul 2009 14:53:01 +0100 Subject: [PATCH] tools/check: No need to check for ${PYTHON} existence. It must exist as otherwise the build will fail since we reference $(PYTHON) all over the place. Furthermore the fallback of '/usr/bin/env python' actually runs Python, it doesn't get the path to it. So that wouldn't work very well. Signed-off-by: Keir Fraser --- tools/check/check_python | 4 ---- tools/check/check_python_devel | 3 --- tools/check/check_python_xml | 3 --- 3 files changed, 10 deletions(-) diff --git a/tools/check/check_python b/tools/check/check_python index cdfe811c14..ed7bc3652b 100755 --- a/tools/check/check_python +++ b/tools/check/check_python @@ -3,10 +3,6 @@ . ./funcs.sh -if test -z ${PYTHON}; then - PYTHON=`/usr/bin/env python 2>/dev/null` -fi - ${PYTHON} -c ' import sys sys.exit(sys.version_info[0] < 2 or sys.version_info[1] < 2) diff --git a/tools/check/check_python_devel b/tools/check/check_python_devel index dd68568b9b..c8e0d93b2f 100755 --- a/tools/check/check_python_devel +++ b/tools/check/check_python_devel @@ -3,9 +3,6 @@ . ./funcs.sh -if test -z ${PYTHON}; then - PYTHON=`/usr/bin/env python 2>/dev/null` -fi has_or_fail ${PYTHON} ${PYTHON} -c ' diff --git a/tools/check/check_python_xml b/tools/check/check_python_xml index 13ef805e75..1932cb85b6 100755 --- a/tools/check/check_python_xml +++ b/tools/check/check_python_xml @@ -3,9 +3,6 @@ . ./funcs.sh -if test -z ${PYTHON}; then - PYTHON=`/usr/bin/env python 2>/dev/null` -fi has_or_fail ${PYTHON} ${PYTHON} -c 'import xml.dom.minidom' 2>/dev/null || \ -- 2.30.2